<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<video id="video" width="900" height="450" controls autoplay muted volume="1">
			<source src="https://img.book118.com/sr1/M00/06/3D/wKh2AmI4HduAS7bOAa-IMqE8k78048.mp4" type="video/mp4">
			<source src="https://img.book118.com/sr1/M00/06/3D/wKh2AmI4HduAS7bOAa-IMqE8k78048.mp4" type="video/mp4">
		</video>
		<div>
			<button type="button" id="btn1" onclick="p()">播放</button>
		</div>
		<script type="text/javascript">
			var myVideo=document.getElementById("video"); 
			var btn1=document.getElementById("btn1");
			function p(){
				myVideo.play();
			}
			setTimeout(()=>{
				// myVideo.play();
				console.log(myVideo)
				myVideo.removeAttribute('muted')
			},2000)
		</script>
	</body>
</html>
